﻿namespace Basefr.Consts
{
    /// <summary>
    /// SQL数据类型
    /// </summary>
    public static class SqlTypes
    {
        //EFCore不支持分别设定MaxLength和Column的TypeName，如果设定TypeName则必须包含长度，如nvarchar(50)，否则只设定MaxLength，TypeName让EFCore决定无需设置
        //public const string Nvarchar = "nvarchar";  

        public const string NvarcharMax = "nvarchar(max)";

        public const string VarBinaryMax = "varbinary(max)";

        public const string Bit = "bit";

        public const string Int = "int";

        public const string SmallInt = "smallint";

        public const string BigInt = "bigint";

        public const string Datetime2 = "datetime2";

        public const string Guid = "uniqueidentifier";

        public const string Decimal = "decimal(18, 4)";

        public const string Float = "float";
    }
}
